package Test_1013;

import java.io.FileNotFoundException;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-10-13
 * Time: 14:07
 */
class Cat implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
public class Test_1013 {
    public static void main(String[] args) {
        if (4%2==0){
            throw new Error("0");
            //System.out.println("111");
        }
    }
    public static void main4(String[] args) {
        if (4%2==0){
            System.out.println("111");
            throw new Error("0");
        }
    }
    public static void main5(String[] args) {
        if (4%2==0){
            throw new Error("0");
        }
        System.out.println("111");
    }
    public static void main6(String[] args) {
        try{
            System.out.println(10/0);
        }catch(ArithmeticException e){
            System.out.println("捕获异常");
        }finally{
            System.out.println("处理异常");
        }
        System.out.println("zz");
    }
    public static void main3(String[] args) throws ArithmeticException{
        System.out.println(10/0);
        if (4%2==0){
            System.out.println("123");
            throw new Error("0");
        }
    }
    public static void main2(String[] args) throws CloneNotSupportedException{
        Cat cat =new Cat();
        Cat cat1=(Cat) cat.clone();
    }
    public static void main1(String[] args) {
        System.out.println(10/0);
    }
}
